package jsyf.oa.facade.system;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

/**
 * Created by WHH-PC on 2018/1/12.
 */
@Path("/wechatShareService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface WechatShareFacade {
    @Path("/save")
    String save(String jsonData);

    @Path("/getWechatShare")
    List<JSONObject> getWechatShare(String shareDate, String userId, String companyId);

    @Path("/delById")
    String delById(String id);

    @Path("/saveTodayWechatShare")
    String saveTodayWechatShare(String companyId, String userId, String shareDate);

    @Path("/getWechatShareTotal")
    JSONObject getWechatShareTotal(JSONObject jsonObject);

    @Path("/getMonthShareList")
    List<JSONObject> getMonthShareList(JSONObject jsonObject);

    @Path("/getShareRegionList")
    List<JSONObject> getShareRegionList(JSONObject jsonObject);

    @Path("/getShareSupportRegionList")
    List<JSONObject> getShareSupportRegionList(JSONObject jsonObject);

    @Path("/getShareSalerManagerList")
    List<JSONObject> getShareSalerManagerList(JSONObject jsonObject);

    @Path("/getShareCompanyList")
    List<JSONObject> getShareCompanyList(JSONObject jsonObject);

    @Path("/getShareByCompanyId")
    JSONObject getShareByCompanyId(JSONObject jsonObject);




}
